<?php
/**
 * @package     Joomla.Tutorials
 * @subpackage  Module
 * @copyright   (C) 2012 http://jomla-code.ru
 * @license     License GNU General Public License version 2 or later; see LICENSE.txt
 */ 
 
// No direct access.
defined('_JEXEC') or die('(@)|(@)');

class modSocialauthHelper
{
    public static function getList(&$params)
    {
        $db = JFactory::getDbo();
        $query = $db->getQuery(true);
        $query->select('title');
        $query->from('#__content');
        $query->where('state = 1');
        $query->order('RAND()');
        $db->setQuery($query, 0, 3);

        $list = $db->loadObjectList();

        return $list;
    }

}
